import request from '@/utils/request';

export async function getToolFileByPage (params: any) {
    return request('/api/device/getToolFileByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addToolFile (params: any) {
    return request('/api/device/addToolFile', {
    method: 'POST',
    data: params,
  });
}

export async function updateToolFile (params: any) {
    return request('/api/device/updateToolFile', {
    method: 'POST',
    data: params,
  });
}

export async function delToolFile (params: any) {
    return request('/api/device/delToolFile', {
    method: 'POST',
    data: params,
  });
}


export async function exportToolFile(params: any) {
    return request('/api/device/exportToolFile', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getToolFileByPage, addToolFile, updateToolFile, delToolFile, exportToolFile }
